﻿using System;
using System.Collections.Generic;
using System.Text;
using DotNet.Data;
namespace DotNet.Business
{
	public class Tab_NewClassBll
	{
		Tab_NewClassDal tDal=new Tab_NewClassDal();

		#region 是否存在该记录
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(int newClassID)
		{
			return tDal.Exists(newClassID);
		}
		#endregion

		#region 获得数据列表
		/// <summary>
		/// 获得数据列表
		/// </summary>
		public IList<Tab_NewClass> GetModel()
		{
			return tDal.GetModel();
		}
		#endregion

		#region 根据标识列获得数据实体
		/// <summary>
		/// 根据标识列获得数据实体
		/// </summary>
		/// <param name="newClassID">标识列</param>
		/// <returns></returns>
		public Tab_NewClass GetModel(int newClassID)
		{
			return tDal.GetModel(newClassID);
		}
		#endregion

		#region 修改信息
		/// <summary>
		/// 修改信息
		/// </summary>
		/// <param name="Tab_NewClass">实体</param>
		/// <returns></returns>
		public bool Update(Tab_NewClass tab_newclass)
		{
			 return tDal.Update(tab_newclass);
		}
		#endregion

		#region 删除信息
		/// <summary>
		/// 删除信息
		/// </summary>
		/// <param name="newClassID">标识列</param>
		/// <returns></returns>
		public bool Delete(int newClassID)
		{
			 return tDal.Delete(newClassID);
		}
		#endregion

		#region 添加信息
		/// <summary>
		/// 添加信息
		/// </summary>
		/// <param name="Tab_NewClass">实体</param>
		/// <returns></returns>
		public bool Insert(Tab_NewClass tab_newclass)
		{
			 return tDal.Insert(tab_newclass);
		}
		#endregion
	}
}
